package com.gaoyu.regexparser.Expression;

/**
 * Created by gaoyu on 2017/5/13.
 */

public class Constant extends Expression{

    public Constant(char c) {
        mValue = c;
    }

    public Constant() {}

    @Override
    public boolean match(char c) {
        return c == mValue;
    }

    @Override
    public boolean interpret(char c) {
        return true;
    }

    @Override
    public boolean hasMatchDone() {
        return true;
    }
}
